var $;

$ = jQuery;

$.fn.extend({
  answer: function(options) {
    var settings;
    settings = {
      options1: true
    };
    settings = $.extend(settings, options);
    return this.each(function() {
      var $this, onClick;
      $this = $(this);
      onClick = function() {
        var $dialog, rel;
        $dialog = $("#answer");
        rel = $(this).attr('rel');
        $('#Answer_parentId', $dialog).val(rel);
        $dialog.dialog("open");
        return false;
      };
      $this.on('click', '.reply', onClick);
    });
  }
});
